#include <func.h>

int main(int argc,char* argv[])
{
    ARGS_CHECK(argc,2)
    int fd;
    fd=open(argv[1],O_RDWR);
    ERROR_CHECK(fd,-1,"open");
    close(STDOUT_FILENO);
    int fd1=dup(fd);
    printf("hello");
    write(fd,"world",5);
    close(fd);
    close(fd1);
    return 0;
}